package Day16;

import java.io.FileOutputStream;
import java.io.IOException;
import java.io.OutputStreamWriter;

public class Demo11 {
    public static void main(String[] args) throws IOException {
        //转换流
        FileOutputStream fos = new FileOutputStream("C:\\Users\\刘娟\\Desktop\\aa.txt");
        OutputStreamWriter osw = new OutputStreamWriter(fos);
        osw.write("锄禾日当午，汗滴禾下土");
        osw.flush();
        osw.close();
    }
}
